package com.jsh.service;

import com.jsh.dao.AddressBookMapper;
import com.jsh.pojo.AddressBook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AddressBookServiceImpl implements AddressBookService{
    @Autowired
    private AddressBookMapper addressBookMapper;
    @Override
    public int deleteByPrimaryKey(Integer contactId) {
        return addressBookMapper.deleteByPrimaryKey(contactId);
    }

    @Override
    public int insert(AddressBook record) {
        return addressBookMapper.insert(record);
    }

    @Override
    public AddressBook selectByPrimaryKey(Integer contactId) {
        return addressBookMapper.selectByPrimaryKey(contactId);
    }

    @Override
    public List<AddressBook> selectAll() {
        return addressBookMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(AddressBook record) {
        return addressBookMapper.updateByPrimaryKey(record);
    }
}
